package cn.acac.yygh.task.job;

import org.joda.time.DateTime;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 提醒就诊人就诊的定时器
 */
@Component
public class PatientRemindJob {

    @Scheduled(cron = "0/5 * * * * ? ")
    public void timeRun(){
        System.out.println(new DateTime().toString("yyyy-MM-dd HH:mm:ss"));
    }
}
